<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<s:head />
		<s:i18n name="globalMessages"></s:i18n>
		<base href="<%=basePath%>" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title> </title>
<link href="images/css.css"  rel="stylesheet" type="text/css" />
<link href="style/css.css"  rel="stylesheet" type="text/css" />
<script type='text/javascript' src='js/jquery-1.4.2.min.js'></script>
<script type='text/javascript' src='js/jquery.validate.min.js'></script>
<script type='text/javascript' src='js/jquery-ui-1.7.3.custom.min.js'></script>  
 <link href="style/ui-lightness/jquery-ui-1.7.3.custom.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
</script>
</head>
<body  bgcolor="#F1F1F1" style="margin:0px; text-align:center;">
	<table width="794"  border="0" cellpadding="0" cellspacing="0" bgcolor="#F1F1F1">
      <!-- 开始循环 -->
      	<s:iterator value="bisTypes" id="typeItem" status="st">
      	<s:if test="#typeItem.manageMsgs!=null  && #typeItem.manageMsgs.size()>0">
        <tr>
          <td   align="center" valign="top" bgcolor="#FFFFFF" style="border:1px solid #C5C5C5; padding:1px ;"><table width="100%" height="32" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td width="1%" height="32" background="images/sp_bg.jpg">&nbsp;</td>
                <td width="3%" align="center" background="images/sp_bg.jpg" style="border-bottom:1px solid #C5C5C5;"><img src="images/dian.jpg" width="10" height="16" /></td>
                <td width="90%" align="left" background="images/sp_bg.jpg" style="border-bottom:1px solid #C5C5C5;"><span class="STYLE3" >${typeItem.name} </span></td>
                <td width="6%" align="left" background="images/sp_bg.jpg">
                	<s:if test="#typeItem.manageMsgs.size>5">
                	<a href="indexAction!findByTypeAndGroup.action?typeId=${typeItem.id }"><img src="images/more.jpg" width="38" height="12" border="0" /></a>
                	</s:if>
                </td>
              </tr>
            </table>
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td height="8">&nbsp;</td>
                </tr>
              </table>
            <table  border="0" cellpadding="0" cellspacing="0" align="left">
                <div id="images2">
                  <tr>
                  	<s:iterator value="#typeItem.manageMsgs" id="msg" status="msgSt" >
                  	<s:if test="#msgSt.index<5">
                    	<td  align="center" style="padding-left: 15px;padding-right: 15px;" >
                    		<s:if test="#msg.manageMsgDetails ==null || #msg.manageMsgDetails.size()==0 || #msg.manageMsgDetails[0]==null || #msg.manageMsgDetails[0].pic == null || #msg.manageMsgDetails[0].pic ==''">
                    			<img src="images/default_msg_pic.jpg" style="height: 106px;width: 126px;"/>
                    		</s:if>
                    		<s:else>
                    				<img  style="height: 106px;width: 126px;"  src="<s:property value="#msg.manageMsgDetails[0].pic"/>" />
                    		</s:else>
                    	</td>
                    </s:if>
                    </s:iterator>
                  </tr>

                  <tr>
                  	<s:iterator value="#typeItem.manageMsgs" id="msg" status="msgSt">
                  	<s:if test="#msgSt.index<5">
                    	<td height="24" align="left"><div class="STYLE11 texthide" style="height:30px; width:120px;text-align: center;padding-left: 5px;">${msg.title}</div></td>
                    </s:if>
                    </s:iterator>
                  </tr>
                  
                  
                  <tr >
                  	<s:iterator value="#typeItem.manageMsgs" id="msg" status="msgSt">
                  	<s:if test="#msgSt.index<5">
                    	<td align="right" class="di_ys " ><div style="padding-right: 10px;"><a href="msg!sendPage.action?first=1&mubanId=${msg.id}"  > </a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="mobanListAction!yulan.action?id=${msg.id}" target="_blank">预览</a>&nbsp;&nbsp;&nbsp;&nbsp;</div></td>
                    </s:if>
                    </s:iterator>
                  </tr>
                </div>
            </table></td>
        </tr>
        
        </s:if>
        </s:iterator>
      </table>
</body>
</html>